package admin

import (
	"github.com/kataras/iris/v12"
	"github.com/kataras/iris/v12/hero"
	"iris_blog/controller/admin"
)

func Nav(party iris.Party) {
	nav := party.Party("/nav")
	serve := admin.Nav{}
	nav.Get("/getNavList", hero.Handler(serve.GetNavList))
	nav.Post("/addNav", hero.Handler(serve.AddNav))
	nav.Post("/delNav", hero.Handler(serve.DelNav))
	nav.Post("/editNav", hero.Handler(serve.EditNav))

}
